<tr id="<%= spree_dom_id stock_location %>" data-controller="row-link" class="cursor-pointer">
  <td data-action="click->row-link#openLink"><%= stock_location.display_name %></td>
  <td data-action="click->row-link#openLink">
    <%= flag_emoji(stock_location.country_iso) %>
    <%= stock_location.country_name %>
  </td>
  <td data-action="click->row-link#openLink"><%= active_badge(stock_location.active?) %></td>
  <td data-action="click->row-link#openLink"><%= active_badge(stock_location.default?) %></td>
  <td class="actions">
    <% if can? :edit, stock_location %>
      <div class="d-flex justify-content-end align-items-center">
        <div><%= link_to_edit stock_location, data: { row_link_target: 'link' } %></div>

        <div class="dropdown">
          <button class="btn btn-sm btn-light h-100" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <%= icon('dots', class: 'mr-0') %>
          </button>

          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
            <%= link_to_with_icon 'check',
              Spree.t(:mark_as_default),
              spree.mark_as_default_admin_stock_location_path(stock_location),
              class: 'dropdown-item',
              data: { turbo_method: :put } %>
          </div>
        </div>
      </div>
    <% end %>
  </td>
</tr>
